/* 页面基础样式 */
body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f7fa;
    padding: 30px 0;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 25px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.07);
}

/* 标题样式 */
h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    font-weight: 600;
}

h4 {
    color: #2c3e50;
    margin: 20px 0 15px;
    font-weight: 600;
}

/* 用户信息卡片 */
.user-info {
    border: 1px solid #e1e1e1;
    background-color: #f9f9f9;
}

.table-borderless td {
    border: none;
    padding: 8px 0;
}

/* 角色列表样式 */
.roles-list {
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    padding: 15px;
    background-color: #f9f9f9;
    margin-bottom: 15px;
}

.form-check {
    margin-bottom: 12px;
    padding: 8px 10px;
    border-bottom: 1px dashed #eee;
}

.form-check:last-child {
    border-bottom: none;
}

.form-check-input {
    margin-right: 10px;
    transform: scale(1.1); /* 适当放大复选框，提升交互体验 */
}

.form-check-label {
    cursor: pointer;
    font-size: 15px;
}

.text-muted {
    color: #6b7280;
    font-size: 13px;
}

/* 按钮样式 */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn-primary:disabled {
    background-color: #95c8f7;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
    transform: translateY(-2px);
}

/* 提示信息样式 */
.alert {
    padding: 12px 15px;
    border-radius: 6px;
    margin: 15px 0;
    font-size: 14px;
}

.alert-danger {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fee2e2;
}

.alert-info {
    background-color: #eff8ff;
    color: #0284c7;
    border: 1px solid #dbeafe;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        margin: 0 10px;
    }

    .form-check {
        padding: 6px 0;
    }

    .btn {
        width: 100%;
        margin: 8px 0 !important;
        display: block;
    }
}